package vip.ipav.spring.cloud.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import vip.ipav.spring.cloud.proxy.HelloServiceB;

/**
 * 测试控制器
 *
 * @author laoyuan.me
 *
 */
@RestController
public class TestController {
    @Autowired
    private HelloServiceB helloService;

    @GetMapping("whoa")
    public String whoa() {
        return helloService.post();
    }
    @GetMapping("who")
    public String who() {
        return helloService.hello("hystrix","micro-service-b");
    }
}
